From: Wei Liu Date: Mon, 2 Mar 2015 10:52:20 +0000 (+0000) Subject: tools: OVMF parallel build X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~3630 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22man:///%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22man:/?a=commitdiff_plain;h=81574744b1eea05382cded62cf9328c2d5a94755;p=xen.git tools: OVMF parallel build Though it doesn't work with make's "-j" option, the build system of OVMF has an option to specify parallel threads used to run the build. Using 4 threads to build OVMF looks like a sensible default. Signed-off-by: Wei Liu Cc: Anthony Perard Cc: Ian Campbell Cc: Ian Jackson Acked-by: Ian Campbell --- diff --git a/tools/firmware/ovmf-makefile b/tools/firmware/ovmf-makefile index 1ad041ffbb..2838744461 100644 --- a/tools/firmware/ovmf-makefile +++ b/tools/firmware/ovmf-makefile @@ -1,6 +1,3 @@ -# OVMF building system is not ready yet to run in parallel. -# Force it to be serial in order to exploit parallelism for neighbors. - XEN_ROOT=$(CURDIR)/../../.. include $(XEN_ROOT)/tools/Rules.mk @@ -10,6 +7,7 @@ else TARGET=RELEASE endif +# OVMF build system has its own parallel building support. .NOTPARALLEL: MAKEFLAGS += -j1 @@ -18,7 +16,7 @@ all: build .PHONY: build build: - OvmfPkg/build.sh -a X64 -b $(TARGET) + OvmfPkg/build.sh -a X64 -b $(TARGET) -n 4 cp Build/OvmfX64/$(TARGET)_GCC*/FV/OVMF.fd ovmf.bin .PHONY: clean